//
//  MainDiscernTbvShootCell.m
//  ZITHER
//
//  Created by weixin on 2018/11/27.
//  Copyright © 2018 weixn. All rights reserved.
//

#import "MainDiscernTbvShootCell.h"

@implementation MainDiscernTbvShootCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [self.viewBorder setCornerRadiusWithRadius:10 isMasks:YES];
    [self.viewBorder setBorderWithColor:[UIColor colorWithHex:@"cccccc"] width:0.5];
//    [self.viewBorder mas_updateConstraints:^(MASConstraintMaker *make) {
//        make.top.equalTo(self).offset(20);
//        make.bottom.equalTo(self).offset(-40);
//    }];
    [self setUI];
    [self setMasrnry];
}

-(void)setUI{
    [self addSubview:self.pic];
    [self addSubview:self.title];
}

-(void)setMasrnry{
    [self.pic mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.mas_top).offset(43);
        make.centerX.equalTo(self.mas_centerX).offset(0);
        make.width.mas_offset(30);
        make.height.mas_offset(20);
    }];
    [self.title mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.pic.mas_bottom).offset(20);
        make.centerX.equalTo(self.mas_centerX).offset(0);
        make.bottom.equalTo(self.mas_bottom).offset(-43);
    }];
}

- (BaseImageV *)pic{
    if (!_pic) {
        _pic = [[BaseImageV alloc]initializeFrame:CGRectMake(0, 0, 0, 0) contentMode:2];
        _pic.image = [UIImage imageNamed:@"我要认证_点击拍摄"];
        _pic.backgroundColor = [UIColor clearColor];
    }
    return _pic;
}
- (BaseLab *)title{
    if (!_title) {
        _title = [[BaseLab alloc]initializeFrame:CGRectMake(0, 0, 0, 0) text:@"拍视频" font:12 textColor:[UIColor blackColor] isBold:NO numberOfLines:1];
    }
    return _title;
}


@end
